The Tab Information Structure
NEW WITH THE APPEARANCE MANAGER
If you are not creating a tab control with a'tab#'
resource, you can callSetControlMaximum
to set the number of tabs in a tab control. Then useSetControlData
with the tab information structure to access and set information for an individual tab in a tab control. Available with Appearance 1.0.1 and later.A tab information structure is of type
ControlTabInfoRec
:
struct ControlTabInfoRec { SInt16 version; SInt16 iconSuiteID; Str255 name; };
Field Description
version
- A signed 16-bit integer indicating the version of the tab information structure. The only currently available version value is 0.
iconSuiteID
- A signed 16-bit integer indicating the ID of an icon suite to be used for the tab label. Pass 0 for no icon.
name
- A string specifying the title to be used for the tab label.